package com.huiquan.foundation.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.huiquan.foundation.domain.Pagination;
import com.huiquan.framework.base.EnhancedBaseDao;
import com.ibatis.sqlmap.client.SqlMapClient;

@Repository
public class PaginationDao extends EnhancedBaseDao<Pagination> {
	
	@Resource(name = "sqlMapClient")
	private SqlMapClient sqlMapClient;
	
	public static final String space = "PAGINATION.";

	public PaginationDao() {
		super(space);
	}
	public void insertBatch(List<Pagination> list){
		Map<String, Object> param = new HashMap<>();
		param.put("list", list);
		this.insert(space + "INSERT_BATCH", param, sqlMapClient);
	}
}
